package comp.style.state
{
	import flash.filters.ColorMatrixFilter;
	import flash.text.TextField;

	public class TextEnabled implements Istate
	{
		public function TextEnabled(tf:TextField,color:uint)
		{
			_tf=tf;
			_color=color;
		}
		
		public function get stateName():String
		{
			return null;
		}
		
		public function set stateName(value:String):void
		{
		}
		
		public function get state():int
		{
			return 0;
		}
		
		public function set state(value:int):void
		{
		}
		
		public function create():void
		{
		}
		
		public function doState(par:*):*
		{
			_tf.textColor=_color;
//			_tf.filters=[new ColorMatrixFilter([0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0])];
			return null;
		}
		
		public function canelState(par:*):*
		{
			_tf.filters=[];
			return null;
		}
		
		private var _tf:TextField;
		private var _color:uint;
	}
}